diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-11-17 16:56:42 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-11-17 16:56:42 +0100 |
commit | 289524938ca527816a902f1a2acb9cf385c2598d (patch) | |
tree | d50201d9bb9702db3cb721029c0219e0945b3594 | |
parent | f2e6bda0d1871b428f682acde577652d9f50ce84 (diff) | |
parent | 5e5042e52ac8a204a129412ef7c7309b677a058b (diff) | |
download | forums-289524938ca527816a902f1a2acb9cf385c2598d.tar forums-289524938ca527816a902f1a2acb9cf385c2598d.tar.gz forums-289524938ca527816a902f1a2acb9cf385c2598d.tar.bz2 forums-289524938ca527816a902f1a2acb9cf385c2598d.tar.xz forums-289524938ca527816a902f1a2acb9cf385c2598d.zip |
Merge pull request #5735 from AlfredoRamos/ticket/16205
[ticket/16205] Fix undefined $zebra variable
-rw-r--r-- | phpBB/search.php | 3 |
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']; |