SF.net SVN: phpwiki:[10803] trunk/lib/Template.php

vargenau--- via phpwiki-checkins <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10803
          http://sourceforge.net/p/phpwiki/code/10803
Author:   vargenau
Date:     2022-01-01 13:06:07 +0000 (Sat, 01 Jan 2022)
Log Message:
-----------
Add {}

Modified Paths:
--------------
    trunk/lib/Template.php

Modified: trunk/lib/Template.php
===================================================================
--- trunk/lib/Template.php	2021-12-30 09:44:07 UTC (rev 10802)
+++ trunk/lib/Template.php	2022-01-01 13:06:07 UTC (rev 10803)
@@ -70,11 +70,13 @@
         $this->_tmpl = fread($fp, filesize($file));
         if ($fp) fclose($fp);
         //$userid = $request->_user->_userid;
-        if (is_array($args))
+        if (is_array($args)) {
             $this->_locals = $args;
-        elseif ($args)
-            $this->_locals = array('CONTENT' => $args); else
+        } elseif ($args) {
+            $this->_locals = array('CONTENT' => $args);
+        } else {
             $this->_locals = array();
+        }
     }
 
     private function _munge_input($template)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.