ErrorException [ Notice ]: Undefined variable: imgwidth

APPPATH/classes/model/product.php [ 33 ]

28     public function getimagewidth() {
29         if ($this->produkt_img1 != '') {
30             $gs = getimagesize('uploaded/products/250' . $this->produkt_img1);
31             $imgwidth = $gs[0];
32         }
33         return $imgwidth;
34     }
35 
36     public function operat() {
37 
38         if (isset($_POST['btn_add']) or isset($_POST['btn_edit'])) {
  1. APPPATH/classes/model/product.php [ 33 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/controller/products.php [ 217 ] » Model_Product->getimagewidth()

  3. {PHP internal call} » Controller_Products->action_description()

  4. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  5. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  6. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  7. /index.php [ 127 ] » Kohana_Request->execute()

Environment