description for session/log id define, better error check for no pk id
PK ID return check if not set is checked correctly in normal execute The SET_SESSION_NAME and LOG_FILE_ID get commented out in settings as they should be rather set per file or in header
This commit is contained in:
@@ -10,16 +10,16 @@ if ($DEBUG_ALL) {
|
|||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
|
// basic class test file
|
||||||
define('USE_DATABASE', true);
|
define('USE_DATABASE', true);
|
||||||
// sample config
|
// sample config
|
||||||
require("config.inc");
|
require("config.inc");
|
||||||
// set session name
|
// set session name
|
||||||
DEFINE('SET_SESSION_NAME', EDIT_SESSION_NAME);
|
DEFINE('SET_SESSION_NAME', EDIT_SESSION_NAME);
|
||||||
// basic class test file
|
|
||||||
// set language for l10n
|
|
||||||
$lang = 'en_utf8';
|
|
||||||
// define log file id
|
// define log file id
|
||||||
DEFINE('LOG_FILE_ID', 'classTest');
|
DEFINE('LOG_FILE_ID', 'classTest');
|
||||||
|
// set language for l10n
|
||||||
|
$lang = 'en_utf8';
|
||||||
// init login & backend class
|
// init login & backend class
|
||||||
$login = new CoreLibs\ACL\Login($DB_CONFIG[LOGIN_DB], $lang);
|
$login = new CoreLibs\ACL\Login($DB_CONFIG[LOGIN_DB], $lang);
|
||||||
$basic = new CoreLibs\Admin\Backend($DB_CONFIG[MAIN_DB], $lang);
|
$basic = new CoreLibs\Admin\Backend($DB_CONFIG[MAIN_DB], $lang);
|
||||||
|
|||||||
@@ -1497,7 +1497,7 @@ class IO extends \CoreLibs\Basic
|
|||||||
} elseif ($this->insert_id[0][$this->prepare_cursor[$stm_name]['pk_name']]) {
|
} elseif ($this->insert_id[0][$this->prepare_cursor[$stm_name]['pk_name']]) {
|
||||||
$this->insert_id = $this->insert_id[0][$this->prepare_cursor[$stm_name]['pk_name']];
|
$this->insert_id = $this->insert_id[0][$this->prepare_cursor[$stm_name]['pk_name']];
|
||||||
}
|
}
|
||||||
} else {
|
} elseif (count($this->insert_id) == 0) {
|
||||||
// failed to get insert id
|
// failed to get insert id
|
||||||
$this->insert_id = '';
|
$this->insert_id = '';
|
||||||
$this->warning_id = 33;
|
$this->warning_id = 33;
|
||||||
|
|||||||
Reference in New Issue
Block a user