]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Utils.php
Handle shaare creation/edition/deletion through Slim controllers
[github/shaarli/Shaarli.git] / application / Utils.php
index 72c90049b9b41c3e7926bede39c4caf6facc2a6a..9c9eaaa2611eff24d62d24eb2d30e2da372d4aad 100644 (file)
@@ -91,6 +91,10 @@ function endsWith($haystack, $needle, $case = true)
  */
 function escape($input)
 {
+    if (null === $input) {
+        return null;
+    }
+
     if (is_bool($input)) {
         return $input;
     }