title: Cakephp paginator array error
body: <p>I'm new to CakePHP and have a question about this controller:</p>
  
  <pre><code>function showmy($userid) {
  
      return $this-&gt;Voucher-&gt;find('all', array('conditions' =&gt; array('Voucher.user_id' =&gt; $userid)));
  
  }   
  
  public function index() {
      $this-&gt;Voucher-&gt;recursive = 0;
      $userid = $this-&gt;Session-&gt;read('Auth.User.id');
      $this-&gt;set('vouchers', $this-&gt;showmy($userid ));
  }
  </code></pre>
  
  <p>I want all the Voucher with user_id by the loged in user.</p>
  
  <p>It works, but i get many errors like :</p>
  
  <pre><code> Warning (2): array_filter() expects parameter 1 to be array, null given     [CORE\Cake\View\Helper\PaginatorHelper.php, line 419]
  </code></pre>
  
  <p>Maybe someone with more experienced could give me some advice!</p>
  
  <p>Thanks,
   Julius</p>