From: Nicolas Boisselier Date: Fri, 2 Dec 2016 10:37:48 +0000 (+0000) Subject: fix bug X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=9c0d96240b8641e795f507e1fb2362500d1a2eb0;p=nb.git fix bug --- diff --git a/lib/php/db.php b/lib/php/db.php index cde8f1ce..51c37256 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -1251,7 +1251,7 @@ class Db extends nb { return $row; } - public static function content_type2format($content_type) { + public static function content_type2format($content_type=null) { if (empty($content_type)) $content_type = self::client_content_type(); switch (self::mime2ext($content_type)) { case "html":