Hello,
I use joomla 1.5.15 and JSJobs 1.5.7 commercial.
When i test my site Online i have this error when i try to create a new company :
Warning: Invalid argument supplied for foreach() in /.../components/com_jsjobs/views/employer/tmpl/formcompany.php on line 320
It refers to this lines :
<?php break;
default:
//echo \'<br> default uf \'.$filed->field;
if ( $field->published == 1 ) {
//line 320//
foreach($this->userfields as $ufield){
if($field->field == $ufield[0]->id) {
$userfield = $ufield[0];
$i++;
echo \"<tr><td valign=\'top\' align=\'right\'>\";
if($userfield->required == 1){
echo \"<label id=\".$userfield->name.\"msg for=$userfield->name>$userfield->title</label> <font color=\'red\'>*</font>\";
$cssclass = \"class =\'inputbox required\' \";
}else{
echo $userfield->title; $cssclass = \"class=\'inputbox\' \";
}
echo \"</td><td>\" ;
I create a new field (siret N°).
But when i edit formcompany.php to modify, there is no error !!!
I really don\'t understand...
Please, could you help me ?
Thanks
MP
www.be-emploi.com/joomla