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:
parent
c60605ce0c
commit
9cfc249b12
8 changed files with 39 additions and 24 deletions
|
@ -230,6 +230,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)
|
||||
if($this->mysqli)
|
||||
|
@ -340,4 +350,3 @@ function dbesc_array(&$arr) {
|
|||
function dba_timer() {
|
||||
return microtime(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue