note 110675 added to function.strpos
| From: | fax at live dot be | Date: | Wed, 21 Nov 2012 22:34:41 +0000 |
| Subject: | note 110675 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192061@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.199
Probable Submitter: 62.197.86.25
----
Manual Page -- http://www.php.net/manual/en/function.strpos.php
Edit -- https://master.php.net/note/edit/110675
Del: integrated -- https://master.php.net/note/delete/110675/integrated
Del: useless -- https://master.php.net/note/delete/110675/useless
Del: bad code -- https://master.php.net/note/delete/110675/bad+code
Del: spam -- https://master.php.net/note/delete/110675/spam
Del: non-english -- https://master.php.net/note/delete/110675/non-english
Del: in docs -- https://master.php.net/note/delete/110675/in+docs
Del: other reasons-- https://master.php.net/note/delete/110675
Reject -- https://master.php.net/note/reject/110675
Search -- https://master.php.net/manage/user-notes.php