From b3218ed1c367d23d7fb50f53f3f90effaa9bee68 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 15 Aug 2012 10:52:32 +0200 Subject: [PATCH] Fix bug where class map in configuration is not recognized due to variable scope --- class.databaserecord.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/class.databaserecord.php b/class.databaserecord.php index bc77b33..16943be 100644 --- a/class.databaserecord.php +++ b/class.databaserecord.php @@ -31,6 +31,8 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass public function __construct($uDataSource, $defaultable = null) { + global $cphp_config; + if(!isset($cphp_config->class_map)) { die("No class map was specified. Refer to the CPHP manual for instructions.");