all of a sudden I am getting there is something wrong with the end of this code.
($rec{'isNew'} eq 'Yes') ? ($rec{'isNew'} = 1) : (delete $rec{'isNew'});
($rec{'isPopular'} eq 'Yes') ? ($rec{'isPopular'} = 1) : (delete $rec{'isPopular'});
return &load_template ('link.html', {
detailed_url => "$db_detailed_url/$rec{'ID'}$build_extension",
%rec,
%globals
});
}
It's telling me that there is a missing operator at the end of $build_extension.
Does anyone know why this is happening.
I have done nothing to the code.
This came out of nowhere.
Jerry
Code:
# Set new and pop to either 1 or 0 for templates. ($rec{'isNew'} eq 'Yes') ? ($rec{'isNew'} = 1) : (delete $rec{'isNew'});
($rec{'isPopular'} eq 'Yes') ? ($rec{'isPopular'} = 1) : (delete $rec{'isPopular'});
return &load_template ('link.html', {
detailed_url => "$db_detailed_url/$rec{'ID'}$build_extension",
%rec,
%globals
});
}
It's telling me that there is a missing operator at the end of $build_extension.
Does anyone know why this is happening.
I have done nothing to the code.
This came out of nowhere.
Jerry