wangzq %!s(int64=2) %!d(string=hai) anos
pai
achega
bb3ffbd9ba
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      app/Libs/Helpers.php

+ 4 - 1
app/Libs/Helpers.php

@@ -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));
         }