Moved is_filled_array() to both dba classes and named it is_result().

Please see ticket #2390 for full discussion.

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Haeder 2016-03-12 18:54:55 +01:00
parent c60605ce0c
commit 9cfc249b12
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
8 changed files with 39 additions and 24 deletions

View file

@ -232,6 +232,16 @@ class dba {
}
}
/**
* Checks if $array is a filled array with at least one entry.
*
* @param $array mixed A filled array with at least one entry
* @return Whether $array is a filled array
*/
public function is_result ($array) {
return (is_array($array) && count($array) > 0);
}
function __destruct() {
if ($this->db)
\DDDBL\disconnect();