mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-30 21:47:30 +00:00
check if returned array is not empty
This commit is contained in:
parent
9958e79315
commit
4b89d920cb
|
@ -112,7 +112,7 @@ class SeedDMS_View_Common {
|
||||||
if($tmpret) {
|
if($tmpret) {
|
||||||
if(is_string($tmpret))
|
if(is_string($tmpret))
|
||||||
$ret .= $tmpret;
|
$ret .= $tmpret;
|
||||||
elseif(is_array($tmpret) || is_object($tmpret))
|
elseif((is_array($tmpret) && $tmpret) || is_object($tmpret))
|
||||||
$ret = ($ret === null) ? $tmpret : array_merge($ret, $tmpret);
|
$ret = ($ret === null) ? $tmpret : array_merge($ret, $tmpret);
|
||||||
else
|
else
|
||||||
$ret = $tmpret;
|
$ret = $tmpret;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user