]> git.wh0rd.org Git - tt-rss.git/commitdiff
db-prefs: use user_error
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 18 Apr 2013 07:38:22 +0000 (11:38 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 18 Apr 2013 07:38:22 +0000 (11:38 +0400)
include/db-prefs.php

index 125f1caaa44bfe6413e29f30c8be4bbdcbc5e06e..8336b0cfee5a0734ca9c9d36b57f22ce2dcba442 100644 (file)
@@ -97,7 +97,7 @@
 
                } else {
                        if ($die_on_error) {
-                               die("Fatal error, unknown preferences key: $pref_name");
+                               user_error("Fatal error, unknown preferences key: $pref_name", E_USER_ERROR);
                        } else {
                                return null;
                        }