Skip to content

Commit

Permalink
MDL-14617 removed PHP4 compatibility error_get_last()
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 1, 2008
1 parent 2881200 commit 6dd038e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/weblib.php
Expand Up @@ -6001,19 +6001,6 @@ function notice_yesno ($message, $linkyes, $linkno, $optionsyes=NULL, $optionsno
print_box_end();
}

/**
* Provide an definition of error_get_last for PHP before 5.2.0. This simply
* returns NULL, since there is not way to get the right answer.
*/
if (!function_exists('error_get_last')) {
// the eval is needed to prevent PHP 5.2+ from getting a parse error!
eval('
function error_get_last() {
return NULL;
}
');
}

/**
* Redirects the user to another page, after printing a notice
*
Expand Down

0 comments on commit 6dd038e

Please sign in to comment.