diff --git a/app/Console/Commands/ServerUpdateCache.php b/app/Console/Commands/ServerUpdateCache.php index 60c5aa3..73dd1b3 100644 --- a/app/Console/Commands/ServerUpdateCache.php +++ b/app/Console/Commands/ServerUpdateCache.php @@ -53,7 +53,7 @@ class ServerUpdateCache extends Command $res = DB::select($sql); foreach ($res as $re) { $this->info("Image: ".$re->id); - $theme = $themeList[$re->template]; + $theme = $themeList[$re->gallery_default_theme]; if(is_null($theme)) { $this->info("Error Theme not found: ".$re->template); exit();