From 7a63e6462f659c95ed7f830e171cf49e095afcf8 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 29 Apr 2012 07:13:48 +0200 Subject: [PATCH] So apparently you can't use variable expansion in class member definition --- frontend/classes/class.node.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/classes/class.node.php b/frontend/classes/class.node.php index 3146cb7..d05d900 100644 --- a/frontend/classes/class.node.php +++ b/frontend/classes/class.node.php @@ -16,8 +16,8 @@ if(!isset($_CVM)) { die("Unauthorized."); } class Node extends CPHPDatabaseRecordClass { public $table_name = "nodes"; - public $fill_query = "SELECT * FROM {$this->table_name} WHERE `Id` = '%d'"; - public $verify_query = "SELECT * FROM {$this->table_name} WHERE `Id` = '%d'"; + public $fill_query = "SELECT * FROM nodes WHERE `Id` = '%d'"; + public $verify_query = "SELECT * FROM nodes WHERE `Id` = '%d'"; public $prototype = array( 'string' => array(