A free open source IT asset/license management system
Early return if no asset is found
Ivan Nieto Vivanco085a993340f3
diff --git a/app/View/Label.php b/app/View/Label.phpindex d581548eb3..bbba1605b7 100644--- a/app/View/Label.php+++ b/app/View/Label.php@@ -39,6 +39,10 @@ class Label implements View$assets = $this->data->get('assets');$offset = $this->data->get('offset');$template = $this->data->get('template');++ if ($assets->isEmpty()){+ return redirect()->back();+ }// If disabled, pass to legacy viewif ((!$settings->label2_enable) && (!$template)) {