references:joomla.framework:utilities:jerror-haserrorshasErrors
Checks to see if any errors have been stored. Syntaxarray hasErrors () ExamplesExample JError::setErrorHandling( E_ALL, 'store' ); JError::raiseNotice( '253', 'THIS IS A TEST!' ); if (JERROR::hasErrors()) { echo "An error has occurred!"; } else { echo "The coast is clear!"; } might produce: Result An error has occurred! |


