# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- includes/bootstrap.inc
+++ includes/bootstrap.inc
@@ -856,7 +856,7 @@
   if ($php525) {
     return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
   }
-  return (preg_match('/^./us', $text) == 1) ? htmlspecialchars($text, ENT_QUOTES, 'UTF-8') : '';
+  return (preg_match('/^./us', (string)$text) == 1) ? htmlspecialchars((string)$text, ENT_QUOTES, 'UTF-8') : '';
 }
 
 /**
