Re: Warning: Missing argument 2 for get_valid_depts()
| From: | Tyler Longren | Date: | Thu, 11 Oct 2001 22:59:52 +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-70860@lists.php.net to get a copy of this message | ||
Hi Philip,
That's what I thought would cause that warning. I'm just fixing some code
that some other people wrote and it's very hard stuff to follow around, and
this error doesn't help any. Thanks, I was just looking for confirmation.
Regards,
Tyler Longren
----- Original Message -----
From: "Philip Olson" <philip@cornado.com>
To: "Tyler Longren" <tyler@captainjack.com>
Cc: "PHP-General" <php-general@lists.php.net>
Sent: Thursday, October 11, 2001 5:56 PM
Subject: Re: [PHP] Warning: Missing argument 2 for get_valid_depts()
>
>
> function foo($a,$b) {
> print "$a $b";
> }
>
> foo('foo');
>
> will cause it. in otherwords, it's missing the second arguement.
>
> regards,
> Philip Olson
>
>
> On Thu, 11 Oct 2001, 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
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>