Skip to content

Commit

Permalink
MDL-43235 behat: Remove notice about undeclared var
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Dec 18, 2013
1 parent eab9fa0 commit 48ca887
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/behat/classes/behat_command.php
Expand Up @@ -142,7 +142,9 @@ public static function behat_setup_problem($checkphp = false) {
}

// Checking behat dataroot existence otherwise echo about admin/tool/behat/cli/init.php.
$CFG->behat_dataroot = realpath($CFG->behat_dataroot);
if (!empty($CFG->behat_dataroot)) {
$CFG->behat_dataroot = realpath($CFG->behat_dataroot);
}
if (empty($CFG->behat_dataroot) || !is_dir($CFG->behat_dataroot) || !is_writable($CFG->behat_dataroot)) {
self::output_msg(get_string('runclitool', 'tool_behat', 'php admin/tool/behat/cli/init.php'));
return BEHAT_EXITCODE_CONFIG;
Expand Down

0 comments on commit 48ca887

Please sign in to comment.