compare strpos result against false
This commit is contained in:
		| @@ -274,7 +274,7 @@ EOT; | ||||
| 			$app['active'] = true; | ||||
|  | ||||
| 		if($is_owner) { | ||||
| 			if(strpos($app['categories'],'nav_pinned_app')) { | ||||
| 			if(strpos($app['categories'],'nav_pinned_app') !== false) { | ||||
| 				$navbar_apps[] = Zlib\Apps::app_render($app,'navbar'); | ||||
| 			} | ||||
| 			else { | ||||
| @@ -282,7 +282,7 @@ EOT; | ||||
| 			} | ||||
| 		} | ||||
| 		elseif(! $is_owner && strpos($app['requires'], 'local_channel') === false) { | ||||
| 			if(strpos($app['categories'],'nav_pinned_app')) { | ||||
| 			if(strpos($app['categories'],'nav_pinned_app') !== false) { | ||||
| 				$navbar_apps[] = Zlib\Apps::app_render($app,'navbar'); | ||||
| 			} | ||||
| 			else { | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
| 	</div> | ||||
| 	{{/if}} | ||||
| 	{{if $install || $update || $delete || $feature}} | ||||
| 	<div class="app-tools"> | ||||
| 	<div class="text-center app-tools"> | ||||
| 		<form action="{{$hosturl}}appman" method="post"> | ||||
| 		<input type="hidden" name="papp" value="{{$app.papp}}" /> | ||||
| 		{{if $install}}<button type="submit" name="install" value="{{$install}}" class="btn btn-outline-secondary btn-sm" title="{{$install}}" ><i class="fa fa-fw fa-arrow-circle-o-down" ></i></button>{{/if}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user