Re: Warning: Missing argument 2 for get_valid_depts()
| From: | Steve Edberg | Date: | Thu, 11 Oct 2001 22:53:30 +0000 |
| Subject: | Re: Warning: Missing argument 2 for get_valid_depts() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70861@lists.php.net to get a copy of this message | ||
Perhaps it's being called somewhere with only one argument - eg;
$BadCall = get_valid_depts($action);I would have thought that PHP would give an error on the calling line, but perhaps not. At any rate, it should be pretty easy to search the program for that function and locate the offending call...
- steveAt 03:33 PM 10/11/01 , Tyler Longren wrote:
Hello everyone, I'm getting this odd warning: Warning: Missing argument 2 for get_valid_depts() in /home2/path/to/admin_head.req on line 359 And here's line 359: function get_valid_depts ($action, $args) { Why does that produce the above warning? Is there something I'm missing? Thanks, Tyler+------------------------------------------------------------------------+
| Steve Edberg University of California, Davis | | sbedberg@ucdavis.edu (530)754-9127 | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ |+---------------------- Gort, Klaatu barada nikto! ----------------------+