deprecated nvl() function similar to optional_variable() - fixed missing global $CFG

This commit is contained in:
skodak
2006-05-18 22:10:40 +00:00
parent e371190c10
commit 88aba6189b
+2
View File
@@ -142,6 +142,8 @@ function p($var, $strip=false) {
* @return mixed
*/
function nvl(&$var, $default='') {
global $CFG;
if (!empty($CFG->disableglobalshack)) {
error( "The nvl() function is deprecated ($var, $default)." );
}