Время работы

ErrorException [ Warning ]: max(): When only one parameter is given, it must be an array

APPPATH/views/pages/search/search.php [ 2 ]

1 <?php
2   if (max($countResults) > 0) {
3 ?>
4   <div class="search-results">
5     <div class="search-results__header">
6       <div class="item img-list <?=($view_type == 'img-list' ? 'active' : '')?>" id="search_img_list">
7         <img src="<?php echo URL::base()?>public/images/search/img-list<?=($view_type == 'img-list' ? '-active' : '')?>.png" />
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/views/pages/search/search.php [ 2 ] » max(arguments)

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

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

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

  6. APPPATH/views/main-template.php [ 372 ] » Kohana_View->__toString()

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

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

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

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

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

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

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

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

  15. DOCROOT/index.php [ 121 ] » Kohana_Request->execute()

Environment