aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
authorAlfredo Ramos <alfredo.ramos.sanchez@gmail.com>2019-11-12 00:40:06 -0600
committerAlfredo Ramos <alfredo.ramos.sanchez@gmail.com>2019-11-12 00:40:06 -0600
commit5e5042e52ac8a204a129412ef7c7309b677a058b (patch)
tree24f04cd4c4db3fcc0dcdcc931cbd7c9a118e837d /phpBB/search.php
parent79a6648b99bc570dd9705547a35e21df808a6657 (diff)
downloadforums-5e5042e52ac8a204a129412ef7c7309b677a058b.tar
forums-5e5042e52ac8a204a129412ef7c7309b677a058b.tar.gz
forums-5e5042e52ac8a204a129412ef7c7309b677a058b.tar.bz2
forums-5e5042e52ac8a204a129412ef7c7309b677a058b.tar.xz
forums-5e5042e52ac8a204a129412ef7c7309b677a058b.zip
[ticket/16205] Fix undefined zebra variable
PHPBB3-16205
Diffstat (limited to 'phpBB/search.php')
-rw-r--r--phpBB/search.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index 8dde46f999..bd8025dae5 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -720,6 +720,8 @@ if ($keywords || $author || $author_id || $search_id || $submit)
if ($sql_where)
{
+ $zebra = [];
+
if ($show_results == 'posts')
{
// @todo Joining this query to the one below?
@@ -728,7 +730,6 @@ if ($keywords || $author || $author_id || $search_id || $submit)
WHERE user_id = ' . $user->data['user_id'];
$result = $db->sql_query($sql);
- $zebra = array();
while ($row = $db->sql_fetchrow($result))
{
$zebra[($row['friend']) ? 'friend' : 'foe'][] = $row['zebra_id'];