quit whining and deal with the problem
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1080 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
dba8e76830
commit
1ac68b6a74
@ -57,8 +57,8 @@ class Image {
|
|||||||
public static function find_images(Config $config, Database $database, $start, $limit, $tags=array()) {
|
public static function find_images(Config $config, Database $database, $start, $limit, $tags=array()) {
|
||||||
$images = array();
|
$images = array();
|
||||||
|
|
||||||
assert(is_numeric($start) && $start >= 0);
|
assert(is_numeric($start));
|
||||||
assert(is_numeric($limit) && $limit > 0);
|
assert(is_numeric($limit));
|
||||||
if($start < 0) $start = 0;
|
if($start < 0) $start = 0;
|
||||||
if($limit < 1) $limit = 1;
|
if($limit < 1) $limit = 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user