global $post when saving...; this code needs a cleanup for consistence

This commit is contained in:
real_nowhereman 2009-01-04 19:03:00 +00:00
parent aeadfd3a74
commit bd87798d9b

View File

@ -622,6 +622,8 @@
}
function entry_save($entry_cont, $id=null, $update_index = true) {
global $post;
$obj =& entry_init();
@ -629,6 +631,8 @@
$entry_cont['date']=date_time();
}
$post = $entry_cont;
$entry = array_change_key_case($entry_cont, CASE_UPPER);
if (!$id) {