MDL-10785:

empty() changed to !isset()
This commit is contained in:
thepurpleblob
2007-08-10 07:16:36 +00:00
parent 6ac9c77179
commit 581ca3d354
+1 -1
View File
@@ -94,7 +94,7 @@ class qformat_xml extends qformat_default {
*/
function getpath( $xml, $path, $default, $istext=false, $error='' ) {
foreach ($path as $index) {
if (empty($xml[$index])) {
if (!isset($xml[$index])) {
if (!empty($error)) {
$this->error( $error );
return false;