0){ $arguments=array(); foreach($args as $key=>$val){ if ($key==count($args)-1 && $val===true){ //if the last argument is true, we're hiding from bio; //don't put this in the array. $hidefrombio=true; }else{ array_push($arguments,$val); } } $arguments = serialize($arguments); }else{ $arguments=""; } if ($hidefrombio === true) $user = 0; $sql = "INSERT INTO " . db_prefix("news") . " (newstext,newsdate,accountid,arguments,tlschema) VALUES ('" . addslashes($news) . "','" . date("Y-m-d H:i:s") . "'," . $user .",'".addslashes($arguments)."','".$translation_namespace."')"; return db_query($sql); } ?>