Skip to Content Skip to Menu

Advanced search on Mambo 4.6.1 / The new CB 1.1

  • mic.lang
  • mic.lang
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: 0
16 years 8 months ago #45337 by mic.lang
Hi

Still having some problems, when search my userlist.

When i search on some fields and there are no results to give back i get the messages: Warning: Invalid argument supplied for foreach() in /customers/vathorstmakelaar.com/vathorstmakelaar.com/httpd.www/components/com_cb_search/cb_search.html.php on line 454

So i have tried to fix this, by setting:
if ( $user ) foreach ( $users as $user ) {

The error messages is fixed, but when i am searching on a field that must give a result id dont get anything back? Can some body help out?

See the code:
<?php
$i = 1;
if ( $user ) foreach ( $users as $user ) {
$evenodd = $i % 2;
if ($evenodd == 0) {
$class = "sectiontableentry1";
} else {
$class = "sectiontableentry2";

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn