aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCallum Macrae <callum@lynxphp.com>2012-03-12 06:40:10 +0000
committerCallum Macrae <callum@lynxphp.com>2012-03-17 18:06:46 +0000
commitb530a4ede452dc52f8d960cb1e6a608ceca00565 (patch)
treee5036a30eba5cee16986aafbcb1ac5d8b8db28b8
parent784c9725f3394ce866ab260485b32d501e07a628 (diff)
downloadforums-b530a4ede452dc52f8d960cb1e6a608ceca00565.tar
forums-b530a4ede452dc52f8d960cb1e6a608ceca00565.tar.gz
forums-b530a4ede452dc52f8d960cb1e6a608ceca00565.tar.bz2
forums-b530a4ede452dc52f8d960cb1e6a608ceca00565.tar.xz
forums-b530a4ede452dc52f8d960cb1e6a608ceca00565.zip
[ticket/10510] Shortened an if statement.
Replaced an isset() and var check with a !empty. PHPBB3-10510
-rw-r--r--phpBB/viewtopic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 46c25cba81..1c03aae39e 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -536,7 +536,7 @@ $quickmod_array = array(
foreach($quickmod_array as $option => $qm_ary)
{
$lang_string = $user->lang($qm_ary[0]);
- if (isset($qm_ary[1]) && $qm_ary[1])
+ if (!empty($qm_ary[1]))
{
phpbb_add_quickmod_option($option, $lang_string);
}