Use "last-item" in the contact table instead of an expensive sql query

This commit is contained in:
Michael Vogel 2016-10-14 05:45:32 +00:00
commit e5c7ce0902
8 changed files with 148 additions and 56 deletions

View file

@ -43,6 +43,10 @@ class dbm {
* @return Whether $array is a filled array
*/
public static function is_result($array) {
// It could be a return value from an update statement
if (is_bool($array))
return $array;
return (is_array($array) && count($array) > 0);
}
}