|
@@ -133,6 +133,7 @@ abstract class LuDataAccess {
|
133
|
133
|
|
134
|
134
|
public static function getAll($page = 0, $perPage = PHP_INT_MAX, $query = "")
|
135
|
135
|
{
|
136
|
|
- return self::getMultiple(static::getQueryPredicate($query), static::getOrderBy(), $page, $perPage);
|
|
136
|
+ $predicates = (is_null($query) || $query == "") ? array() : static::getQueryPredicate($query);
|
|
137
|
+ return self::getMultiple($predicates, static::getOrderBy(), $page, $perPage);
|
137
|
138
|
}
|
138
|
139
|
}
|