dever %!s(int64=6) %!d(string=hai) anos
pai
achega
44844b5827
Modificáronse 1 ficheiros con 8 adicións e 4 borrados
  1. 8 4
      live/lib/Handle.php

+ 8 - 4
live/lib/Handle.php

@@ -73,14 +73,18 @@ class Handle
         $stream = $method->getInfo($info['key']);
 
         $live = array();
-        $hitory = array();
-        
+        $history = array();
+
         try {
             $live = $method->getLiveStatus($info['key']);
-            $hitory = $method->history($info['key']);
         } catch (\Exception $e) {
             $live = array();
-            $hitory = array();
+        }
+
+        try {
+            $history = $method->history($info['key']);
+        } catch (\Exception $e) {
+            $history = array();
         }
 
         $data['where_id'] = $info['id'];