diff --git a/src/mibew/configs/database_schema.yml b/src/mibew/configs/database_schema.yml index 882c67ec..a3b513d6 100644 --- a/src/mibew/configs/database_schema.yml +++ b/src/mibew/configs/database_schema.yml @@ -104,7 +104,7 @@ requestcallback: fields: callbackid: "int NOT NULL auto_increment PRIMARY KEY" token: "varchar(64) NOT NULL DEFAULT ''" - function: "varchar(64) NOT NULL" + func: "varchar(64) NOT NULL" arguments: "varchar(1024)" indexes: token: [token] diff --git a/src/mibew/libs/classes/Mibew/RequestProcessor/AbstractProcessor.php b/src/mibew/libs/classes/Mibew/RequestProcessor/AbstractProcessor.php index c98bcce1..5d9aa40a 100644 --- a/src/mibew/libs/classes/Mibew/RequestProcessor/AbstractProcessor.php +++ b/src/mibew/libs/classes/Mibew/RequestProcessor/AbstractProcessor.php @@ -485,7 +485,7 @@ abstract class AbstractProcessor $db = Database::getInstance(); $query = "INSERT INTO {requestcallback} ( " - . "token, function, arguments " + . "token, func, arguments " . ") VALUES ( " . ":token, :function, :arguments" . ")"; @@ -526,7 +526,7 @@ abstract class AbstractProcessor } return array( - 'function' => $callback['function'], + 'function' => $callback['func'], 'arguments' => unserialize($callback['arguments']), ); }