|
@@ -1056,7 +1056,10 @@ if (!function_exists('is_empty')){
|
|
|
function is_empty($data): bool
|
|
|
{
|
|
|
if (is_object($data)){
|
|
|
- \Log::info(' is_empty:'.json_encode(get_object_vars($data)).var_export($data,true));
|
|
|
+ if (method_exists($data,'isEmpty')){
|
|
|
+ return $data->isEmpty();
|
|
|
+ }
|
|
|
+
|
|
|
return empty(get_object_vars($data));
|
|
|
}
|
|
|
|