Sanity checks

This commit is contained in:
Garvin Hicking
2003-02-27 22:46:12 +00:00
parent cfdb73ce1a
commit 916133f63b
4 changed files with 9 additions and 7 deletions

View File

@@ -32,7 +32,9 @@ $Source$
* Documentation.html: Updated for my new features. Should include
everyting, I hope. But seriously needs a proofread.
* config.inc.php3: Inserted new directives for empty
$cfg['Servers'][$i].
$cfg['Servers'][$i]. (history, verbose_check)
* tbl_create.php3, tbl_addfield.php3, tbl_alter.php3: Added more checks
to suppress Notices/Warnings when MIME-types are not enabled.
2003-02-26 Garvin Hicking <me@supergarv.de>
* lang/german-*: better grammar. ;)

View File

@@ -199,7 +199,7 @@ if (isset($submit)) {
$cfgRelation = PMA_getRelationsParam();
// garvin: Update comment table, if a comment was set.
if (is_array($field_comments) && $cfgRelation['commwork']) {
if (isset($field_comments) && is_array($field_comments) && $cfgRelation['commwork']) {
@reset($field_comments);
while(list($fieldindex, $fieldcomment) = each($field_comments)) {
PMA_setComment($db, $table, $field_name[$fieldindex], $fieldcomment);
@@ -207,7 +207,7 @@ if (isset($submit)) {
}
// garvin: Update comment table for mime types [MIME]
if (is_array($field_mimetype) && $cfgRelation['commwork'] && $cfgRelation['mimework'] && $cfg['BrowseMIME']) {
if (isset($field_mimetype) && is_array($field_mimetype) && $cfgRelation['commwork'] && $cfgRelation['mimework'] && $cfg['BrowseMIME']) {
@reset($field_mimetype);
while(list($fieldindex, $mimetype) = each($field_mimetype)) {
PMA_setMIME($db, $table, $field_name[$fieldindex], $mimetype, $field_transformation[$fieldindex], $field_transformation_options[$fieldindex]);

View File

@@ -95,7 +95,7 @@ if (isset($submit)) {
$cfgRelation = PMA_getRelationsParam();
// garvin: Update comment table, if a comment was set.
if (is_array($field_comments) && $cfgRelation['commwork']) {
if (isset($field_comments) && is_array($field_comments) && $cfgRelation['commwork']) {
@reset($field_comments);
while(list($fieldindex, $fieldcomment) = each($field_comments)) {
PMA_setComment($db, $table, $field_name[$fieldindex], $fieldcomment, $field_orig[$fieldindex]);
@@ -103,7 +103,7 @@ if (isset($submit)) {
}
// garvin: Update comment table for mime types [MIME]
if (is_array($field_mimetype) && $cfgRelation['commwork'] && $cfgRelation['mimework'] && $cfg['BrowseMIME']) {
if (isset($field_mimetype) && is_array($field_mimetype) && $cfgRelation['commwork'] && $cfgRelation['mimework'] && $cfg['BrowseMIME']) {
@reset($field_mimetype);
while(list($fieldindex, $mimetype) = each($field_mimetype)) {
PMA_setMIME($db, $table, $field_name[$fieldindex], $mimetype, $field_transformation[$fieldindex], $field_transformation_options[$fieldindex]);

View File

@@ -200,7 +200,7 @@ if (isset($submit)) {
$cfgRelation = PMA_getRelationsParam();
// garvin: Update comment table, if a comment was set.
if (is_array($field_comments) && $cfgRelation['commwork']) {
if (isset($field_comments) && is_array($field_comments) && $cfgRelation['commwork']) {
@reset($field_comments);
while(list($fieldindex, $fieldcomment) = each($field_comments)) {
PMA_setComment($db, $table, $field_name[$fieldindex], $fieldcomment);
@@ -208,7 +208,7 @@ if (isset($submit)) {
}
// garvin: Update comment table for mime types [MIME]
if (is_array($field_mimetype) && $cfgRelation['commwork'] && $cfgRelation['mimework'] && $cfg['BrowseMIME']) {
if (isset($field_mimetype) && is_array($field_mimetype) && $cfgRelation['commwork'] && $cfgRelation['mimework'] && $cfg['BrowseMIME']) {
@reset($field_mimetype);
while(list($fieldindex, $mimetype) = each($field_mimetype)) {
PMA_setMIME($db, $table, $field_name[$fieldindex], $mimetype, $field_transformation[$fieldindex], $field_transformation_options[$fieldindex]);