Support silent input checking. checkOutputEditorInput() can now return TRUE instead of a
list of errors
This commit is contained in:
committed by
WineHQ
parent
d03359ed2e
commit
f688be7c4d
@@ -436,6 +436,13 @@ class ObjectManager
|
||||
{
|
||||
if($sErrors)
|
||||
{
|
||||
/* A class's checkOutputEditorInput() may simply return TRUE if
|
||||
it wants the editor to be displayed again, without any error
|
||||
messages. This is for example useful when gathering information
|
||||
in several steps, such as with application submission */
|
||||
if($sErrors === TRUE)
|
||||
return TRUE;
|
||||
|
||||
echo "<font color=\"red\">\n";
|
||||
echo "The following errors were found<br />\n";
|
||||
echo "<ul>$sErrors</ul>\n";
|
||||
|
||||
Reference in New Issue
Block a user