includes/lang.php
changeset 239 0f1b353570a7
parent 215 94db56b8124f
child 241 c671f3bb8aed
--- a/includes/lang.php	Tue Nov 06 10:53:33 2007 -0500
+++ b/includes/lang.php	Tue Nov 06 11:10:18 2007 -0500
@@ -88,7 +88,7 @@
       $db->_die('lang.php - attempting to pass invalid value to constructor');
     }
     
-    $lang_default = ( $x = getConfig('default_language') ) ? intval($x) : 'def';
+    $lang_default = ( $x = getConfig('default_language') ) ? intval($x) : '\'def\'';
     $q = $db->sql_query("SELECT lang_id, lang_code, last_changed, ( lang_id = $lang_default ) AS is_default FROM " . table_prefix . "language WHERE $sql_col OR lang_id = $lang_default ORDER BY is_default DESC LIMIT 1;");
     
     if ( !$q )