warning: strpos() [function.strpos]: Empty delimiter in C:\wamp\www\risweb\sites\all\modules\views_bulk_operations\views_bulk_operations.module on line 69.

It seems that one of the $urls that is being passed to the strpos function is empty.

The current code is (from lines 64 to 73):

      $path = 'admin/build/views/'.$view_name.'/operations';
    }
    else {
      $urls = views_get_all_urls();
      foreach ($urls as $key => $url) {
        if (strpos($_GET['q'], $url) !== FALSE) {
          $view_name = $key;
          break;
        }
      }

a very minor change to (same line numbers as above):

      $path = 'admin/build/views/'.$view_name.'/operations';
    }
    else {
      $urls = views_get_all_urls();
      foreach ($urls as $key => $url) {
        if (!empty($url) && strpos($_GET['q'], $url) !== FALSE) {
          $view_name = $key;
          break;
        }
      }

eliminates the error. Not sure if this will screw up the intended behaviour or not.

Dave

Comments

infojunkie’s picture

Version: 5.x-1.0-beta5 » 5.x-1.x-dev
Status: Active » Closed (fixed)

Already fixed in -dev.