[evolvis-commits] r17272: avoid warning on empty strings

mirabilos at evolvis.org mirabilos at evolvis.org
Thu May 19 12:11:55 CEST 2011


Author: mirabilos
Date: 2011-05-19 12:11:55 +0200 (Thu, 19 May 2011)
New Revision: 17272

Modified:
   trunk/gforge_base/evolvisforge/gforge/common/include/minijson.php
Log:
avoid warning on empty strings


Modified: trunk/gforge_base/evolvisforge/gforge/common/include/minijson.php
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/common/include/minijson.php	2011-05-19 10:11:51 UTC (rev 17271)
+++ trunk/gforge_base/evolvisforge/gforge/common/include/minijson.php	2011-05-19 10:11:55 UTC (rev 17272)
@@ -68,6 +68,7 @@
 	}
 	if (is_string($x)) {
 		$rs = "\"";
+		$x .= "\0";
 		/*
 		 * A bit unbelievable: not only does mb_check_encoding
 		 * not exist from the start, but also does it not check



More information about the evolvis-commits mailing list