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:
Clemens Schwaighofer
2018-04-24 10:04:51 +09:00
parent 3400902241
commit 0f483a2d20
2 changed files with 4 additions and 4 deletions

View File

@@ -10,16 +10,16 @@ if ($DEBUG_ALL) {
ob_start();
// basic class test file
define('USE_DATABASE', true);
// sample config
require("config.inc");
// set 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', 'classTest');
// set language for l10n
$lang = 'en_utf8';
// init login & backend class
$login = new CoreLibs\ACL\Login($DB_CONFIG[LOGIN_DB], $lang);
$basic = new CoreLibs\Admin\Backend($DB_CONFIG[MAIN_DB], $lang);

View File

@@ -1497,7 +1497,7 @@ class IO extends \CoreLibs\Basic
} 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']];
}
} else {
} elseif (count($this->insert_id) == 0) {
// failed to get insert id
$this->insert_id = '';
$this->warning_id = 33;