From 9c0d96240b8641e795f507e1fb2362500d1a2eb0 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 2 Dec 2016 10:37:48 +0000 Subject: [PATCH] fix bug --- lib/php/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": -- 2.47.3