mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-10785:
empty() changed to !isset() Merged from STABLE_18
This commit is contained in:
parent
060d1e1792
commit
228b6f6b1d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue