Skip to content

Commit

Permalink
MDL-8029 removed obsoleted use of nvl() from weblib
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Dec 30, 2006
1 parent b490cf7 commit d90ffc1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/weblib.php
Expand Up @@ -158,8 +158,11 @@ function strip_querystring($url) {
* @return string
*/
function get_referer() {

return strip_querystring(nvl($_SERVER['HTTP_REFERER']));
if (isset($_SERVER['HTTP_REFERER'])) {
return strip_querystring($_SERVER['HTTP_REFERER']);
} else {
return '';
}
}


Expand Down

0 comments on commit d90ffc1

Please sign in to comment.