ErrorException [ Warning ]: count(): Parameter must be an array or an object that implements Countable

APPPATH/views/revistas.php [ 5 ]

 1 <div id="pginterna" class="container_full">
 2 <h1>Revistas</h1>
 3 <?php
 4 
 5 if(count($revistas)):
 6     
 7     foreach($revistas as $revista):
 8     
 9     ?>
10         <?php// echo $cupom->getCupom(); ?>
  1. APPPATH/views/revistas.php [ 5 ] » 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/template.php [ 62 ] » 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 [ 993 ] » Kohana_Request_Client->execute(arguments)

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

Environment