ErrorException [ Warning ]: Division by zero

APPPATH/views/public/shop/home.php [ 97 ]

 92             ?>
 93             <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
 94                 <?php if ($reseller == 0) : ?>
 95                 <div class="sale-label-cont">
 96                     <?php if ($product->price_promo > 0 && $product->price > 0): ?>
 97                     <span class="rect-sale"><?= number_format(($product->getPricePromo() / $product->getPrice()) * 100, 0) - 100 ?>%</span>
 98                     <?php endif; ?>
 99                 </div>
100                 <?php endif; ?>
101                 <div class="item">
102                     <div class="item-picture"><a href="<?= $p_url ?>"><img class="" src="<?= $src ?>" alt=""></a>
  1. APPPATH/views/public/shop/home.php [ 97 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()

  5. APPPATH/views/public/shop/layout.php [ 168 ] » Kohana_View->__toString()

  6. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  7. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  8. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  9. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()

  10. {PHP internal call} » Kohana_Controller->execute()

  11. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  12. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  13. SYSPATH/classes/Kohana/Request.php [ 997 ] » Kohana_Request_Client->execute(arguments)

  14. DOCROOT/index.php [ 118 ] » Kohana_Request->execute()

Environment