File tree Expand file tree Collapse file tree
modules/aggiornamenti/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,8 +44,10 @@ public function cacheData()
4444 public function response ()
4545 {
4646 $ update = $ this ->getCache ()->content [0 ];
47- if (version_compare ($ update ,\Update::getVersion ()) < 0 || empty (setting ('Attiva aggiornamenti ' ))) {
48- $ update = null ;
47+ if (!empty ($ update )) {
48+ if (version_compare ($ update ,\Update::getVersion ()) < 0 || empty (setting ('Attiva aggiornamenti ' ))) {
49+ $ update = null ;
50+ }
4951 }
5052
5153 $ module = Module::where ('name ' , 'Aggiornamenti ' )->first ();
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public function response()
4646 {
4747 $ results = Cache::where ('name ' , $ this ->cache_name )->first ()->content ;
4848
49- $ count = count ($ results );
49+ $ count = $ results ? count ($ results ) : 0 ;
5050 $ notify = false ;
5151
5252 $ module = Module::where ('name ' , 'Fatture di acquisto ' )->first ();
You can’t perform that action at this time.
0 commit comments