[Fusionforge-commits] r17542 - trunk/src/plugins/wiki/www/lib

Marc-Etienne VARGENAU vargenau at fusionforge.org
Thu Jul 18 11:21:06 CEST 2013


Author: vargenau
Date: 2013-07-18 11:21:06 +0200 (Thu, 18 Jul 2013)
New Revision: 17542

Modified:
   trunk/src/plugins/wiki/www/lib/PageList.php
Log:
Add braces

Modified: trunk/src/plugins/wiki/www/lib/PageList.php
===================================================================
--- trunk/src/plugins/wiki/www/lib/PageList.php	2013-07-18 09:20:41 UTC (rev 17541)
+++ trunk/src/plugins/wiki/www/lib/PageList.php	2013-07-18 09:21:06 UTC (rev 17542)
@@ -1099,8 +1099,12 @@
     function explodePageList($input, $include_empty = false, $sortby = '',
                              $limit = '', $exclude = '')
     {
-        if (empty($input)) return array();
-        if (is_array($input)) return $input;
+        if (empty($input)) {
+            return array();
+        }
+        if (is_array($input)) {
+            return $input;
+        }
         // expand wildcards from list of all pages
         if (preg_match('/[\?\*]/', $input) or substr($input, 0, 1) == "^") {
             include_once 'lib/TextSearchQuery.php';




More information about the Fusionforge-commits mailing list