mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 17:14:26 +02:00
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
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue