]> git.mjollnir.org Git - s9y.git/commitdiff
fix e_NOTICE error
authorgarvinhicking <garvinhicking>
Mon, 17 Oct 2005 11:53:57 +0000 (11:53 +0000)
committergarvinhicking <garvinhicking>
Mon, 17 Oct 2005 11:53:57 +0000 (11:53 +0000)
include/db/mysql.inc.php

index 8430641e0c44f3d9ac8cc8bb788f472d4f6589d7..3bd2cedcbdc7ef9c2aa39bf6c0d420270eb6c2fb 100644 (file)
@@ -165,7 +165,7 @@ function serendipity_db_schema_import($query) {
     
     if ($is_utf8 === null) {
         $search[] = '{UTF_8}'; 
-        if (  $_POST['charset'] == 'UTF-8/' || 
+        if (  (isset($_POST['charset']) && $_POST['charset'] == 'UTF-8/') || 
               $serendipity['charset'] == 'UTF-8/' ||
               $serendipity['POST']['charset'] == 'UTF-8/' || 
               LANG_CHARSET == 'UTF-8' ) {