diff --git a/simpla/BrandAdmin.php b/simpla/BrandAdmin.php index dfcb24d..3180c12 100755 --- a/simpla/BrandAdmin.php +++ b/simpla/BrandAdmin.php @@ -29,6 +29,14 @@ function fetch() { $this->design->assign('message_error', 'url_exists'); } + elseif(empty($brand->name)) + { + $this->design->assign('message_error', 'name_empty'); + } + elseif(empty($brand->url)) + { + $this->design->assign('message_error', 'url_empty'); + } else { if(empty($brand->id)) @@ -66,4 +74,4 @@ function fetch() $this->design->assign('brand', $brand); return $this->design->fetch('brand.tpl'); } -} \ No newline at end of file +}