mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
issue #2467 change boolean cast
This commit is contained in:
@@ -1865,7 +1865,7 @@ function get_quick_search_results($q, $options)
|
||||
strtolower($q),
|
||||
$conf['order_by'],
|
||||
$user['id'],$user['cache_update_time'],
|
||||
isset($options['permissions']) ? (boolean)$options['permissions'] : true,
|
||||
isset($options['permissions']) ? (bool)$options['permissions'] : true,
|
||||
isset($options['images_where']) ? $options['images_where'] : '',
|
||||
) );
|
||||
if ($persistent_cache->get($cache_key, $res))
|
||||
|
||||
@@ -104,7 +104,7 @@ abstract class TemplateBase extends Data {
|
||||
}
|
||||
// register the object
|
||||
$smarty->registered_objects[$object_name] =
|
||||
[$object, (array)$allowed_methods_properties, (boolean)$format, (array)$block_methods];
|
||||
[$object, (array)$allowed_methods_properties, (bool)$format, (array)$block_methods];
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user