";
$res = $this->wpdb->get_row($sql, ARRAY_A);
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($sql, 'DataBlock', "pointerOutput() value data query ".$f['field'].(isset($f['as']) ? ' as '.$f['as'] : ''));
}
";
$p_list = $this->wpdb->get_results($sql, ARRAY_A);
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($sql, 'DataBlock', "pointerOutput() value data query ".$f['field'].(isset($f['as']) ? ' as '.$f['as'] : ''));
}
$res = $this->wpdb->get_row($sql, ARRAY_A);
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($sql, 'DataBlock', "pointerOutput() value data query ".$f['field'].(isset($f['as']) ? ' as '.$f['as'] : ''));
}
} else {
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($newImage, 'DataBlock', "DataAbstract - imageInput() wp_get_image_editor($tmpFile) Error");
}
}
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($this->fieldData, 'DataBlock', "buildFieldsList() data");
}
$stats = $this->wpdb->get_row($sql, ARRAY_A);
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($sql, 'DataBlock', "DataAbstract - getStats() query");
glmMembersAdmin::addNotice($stats, 'DataBlock', "Stats Data");
}
";
}
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($sql, 'DataBlock', "DataAbstract - getList() query");
}
$newList[$v['id']] = $this->processOutputData($v, 'l');
}
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($newList, 'DataBlock', "getList() data");
}
$detail = $this->processOutputData($detail, 'g', $fieldVals);
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($sql, 'DataBlock', "DataAbstract - getEntry() query");
glmMembersAdmin::addNotice($detail, 'DataBlock', "getEntry() data");
}
// Check if there's a function to do other checks
$r = $this->checkOther($r, 'n');
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($r, 'DataBlock', "newEntry() data");
}
( $fields ) VALUES ( $vals );
";
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($sql, 'DataBlock', "insertEntry() Query");
}
$this->wpdb->query($sql);
// Check for query errors
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
$queryError = $this->wpdb->last_error;
if (trim($queryError) != '') {
glmMembersAdmin::addNotice(
$r['fieldData']['id'] = $this->wpdb->insert_id;
} else {
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice(' insertEntry() requested to NOT store new entry!', 'Process');
}
}
} else {
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice('  checkOther() returned bad status.', 'Process');
}
}
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($r, 'DataBlock', "DataAbstract - insertEntry() data");
}
$detail = $this->wpdb->get_row($sql, ARRAY_A);
// Check for Errors
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
$queryError = $this->wpdb->last_error;
if (trim($queryError) != '') {
glmMembersAdmin::addNotice(
// Process individual fields
$detail = $this->processOutputData($detail, 'e', true, $id, $idField);
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($sql, 'DataBlock', "DataAbstract - editEntry() query");
glmMembersAdmin::addNotice($detail, 'DataBlock', "editEntry() data");
}
$this->wpdb->query($sql, ARRAY_A);
// Check for Errors
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
$queryError = $this->wpdb->last_error;
if (trim($queryError) != '') {
glmMembersAdmin::addNotice(
}
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($r, 'DataBlock', "updateEntry() data");
}
WHERE $idField = $id;
";
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($sql, 'DataBlock', "DataAbstract - deleteEntry() query");
}
}
}
- if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
+ if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {
glmMembersAdmin::addNotice($detail, 'DataBlock', "deleteEntry() data");
}