note 110675 rejected from function.strpos by danbrown
| From: | danbrown@php.net | Date: | Wed, 21 Nov 2012 22:37:35 +0000 |
| Subject: | note 110675 rejected from function.strpos by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192062@lists.php.net to get a copy of this message | ||
Note Submitter: fax at live dot be
----
Hello,
Hope someone can help me.
I have php 5.3 and have this error on my page since php update on my server:
I dont know how to fix that, downgrade php exclusion.
Here is my code:
if ($banner_section != "general") {
if ((strpos($category_id, "x") === false) && (strpos($category_id,
".") === false)) {
if ($category_id && is_numeric($category_id)) {
if ($banner_section=="post") { $banner_section="blog"; }
$catList = substr(getTreePath($category_id, $banner_section), 1);
$catList .= $catList.",".substr(getSubTree($category_id, $banner_section), 1);
$sql .= " AND (category_id IN (".$catList.") OR section =
'global')";
} elseif ($category_id && is_array($category_id)) {
$sql .= " AND (category_id IN (".implode(",", $category_id).") OR
section = 'global')";
} else {
$sql .= " AND (category_id = 0 OR category_id IS NULL OR section =
'global')";
}
Thank for help.
Benjy