php Undefined variable: article_id
- by mmcgrail
I keep getting this as a warning but but I don't care if its not set so how do I get rid of the warning and still achieve my goal
here is the context
var url_items = array("foo");
$article_id = db_escape($url_items[1]);
$article = get_article($article_id);
function get_article($article_id = NULL) {.....}