[ Warning ]: Division by zero

APPPATH/classes/datasource.php [ 294 ]

289                 $ph['size'] = $ph['strsize'] = $this->getRand($sizes, $ph['motive_id']);
290             } else {
291                 if (empty($material['size_round'])) {
292                     $material['size_round'] = 1;
293                 }
294                 $w = round(sqrt($ph['max_width']/$ph['max_height'])*1000/$material['size_round'])*$material['size_round'];
295                 $h = round(sqrt($ph['max_height']/$ph['max_width'])*1000/$material['size_round'])*$material['size_round'];
296                 
297                 $ph['size'] = $ph['strsize'] = $w.'x'.$h;
298             }
299         }
  1. APPPATH/classes/datasource.php [ 294 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/datasource.php [ 447 ] » DataSource->preparePhoto(arguments)

  3. APPPATH/classes/boxes/category.php [ 24 ] » DataSource->getResult()

  4. MODPATH/webpage/classes/boxes.php [ 124 ] » Boxes_Category->get()

  5. MODPATH/webpage/classes/controller/webpage.php [ 119 ] » Boxes->getData()

  6. MODPATH/webpage/classes/controller/webpage.php [ 184 ] » Controller_Webpage->parse()

  7. {PHP internal call} » Controller_Webpage->action_index()

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

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

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

  11. MODPATH/webpage/classes/controller/filter.php [ 29 ] » Kohana_Request->execute()

  12. {PHP internal call} » Controller_Filter->before()

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

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

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

  16. /index.php [ 82 ] » Kohana_Request->execute()

Environment