fix entries not inserted properly when no languages are detected

This commit is contained in:
Andrew Dolgov 2013-08-02 16:03:13 +04:00
parent 00f22824d7
commit edba269b6f
1 changed files with 2 additions and 0 deletions

View File

@ -577,6 +577,8 @@
$entry_language = db_escape_string(substr($entry_language[0], 0, 2)); $entry_language = db_escape_string(substr($entry_language[0], 0, 2));
_debug("detected language: $entry_language", $debug_enabled); _debug("detected language: $entry_language", $debug_enabled);
} else{
$entry_language = "";
} }
$entry_comments = $item->get_comments_url(); $entry_comments = $item->get_comments_url();