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