|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-30 23:46 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 21:00:01 2025 UTC |
Description: ------------ I have a class, where are few variables: function DrawSelectList($list_name, $key1, $key2=false) and there is a class which calls my function. If there are 3 variables: $result = $class1 -> DrawSelectList($arg1, $arg2, $arg3) there is no problem, but if I pass two arguments only, there is a problem: PHP Fatal error: Cannot access empty property in C:\project\ast\utility\SelectList.php on line 29 the code of 'SelectList.php' looks like this: (...) while($row = $dao->fetchObject()) { $this->arg1= $row->$key; $this->arg2= $row->$pole1; line 29 $this->arg3= $row->$pole2; $this->list= $list_name; (...) In PHP 5.0.4 it worked properly. Sorry for my english.