File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed 
app/base/controllers/Admin Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,12 @@ public function getBaseTemplateData(): array
140140        if  ($ this getCache ()->has ($ picsumKey
141141            $ picsumIds$ this getCache ()->get ($ picsumKey
142142        } else  {
143-             $ picsumIdsjson_decode ($ this getUtils ()->requestUrl ('https://picsum.photos/v2/list?page ' .rand (0 , 10 ).'&limit=100 ' ), true );
144-             $ this getCache ()->set ($ picsumKey$ picsumIds3600 );
143+             try  {
144+                 $ picsumIdsjson_decode ($ this getUtils ()->requestUrl ('https://picsum.photos/v2/list?page ' .rand (0 , 10 ).'&limit=100 ' ), true );
145+                 $ this getCache ()->set ($ picsumKey$ picsumIds3600 );
146+             } catch  (Exception $ e
147+                 $ picsumIds
148+             }
145149        }
146150
147151        $ imagecurrent (array_slice ($ picsumIdsrand (0 , count ($ picsumIds1 ));
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments