define variables only where needed, and use NULL to define them, as some places test only for isset and not for content
This commit is contained in:
@@ -7,6 +7,9 @@ $Source$
|
|||||||
|
|
||||||
2005-11-24 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
2005-11-24 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||||
* libraries/grab_globals.lib.php: allow scripts to bypass importing vars
|
* libraries/grab_globals.lib.php: allow scripts to bypass importing vars
|
||||||
|
* libraries/common.lib.php, libraries/export/sql.php: define variables only
|
||||||
|
where needed, and use NULL to define them, as some places test only for
|
||||||
|
isset and not for content
|
||||||
|
|
||||||
2005-11-25 Marc Delisle <lem9@users.sourceforge.net>
|
2005-11-25 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* main.php: move server choice into MySQL container
|
* main.php: move server choice into MySQL container
|
||||||
|
@@ -54,9 +54,6 @@ $GLOBALS['PMA_errors'] = array();
|
|||||||
/**
|
/**
|
||||||
* Avoids undefined variables
|
* Avoids undefined variables
|
||||||
*/
|
*/
|
||||||
if (!isset($use_backquotes)) {
|
|
||||||
$use_backquotes = 0;
|
|
||||||
}
|
|
||||||
if (!isset($pos)) {
|
if (!isset($pos)) {
|
||||||
$pos = 0;
|
$pos = 0;
|
||||||
}
|
}
|
||||||
|
@@ -10,6 +10,13 @@
|
|||||||
*/
|
*/
|
||||||
$GLOBALS['comment_marker'] = '-- ';
|
$GLOBALS['comment_marker'] = '-- ';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Avoids undefined variables, use NULL so isset() returns false
|
||||||
|
*/
|
||||||
|
if ( ! isset( $use_backquotes ) ) {
|
||||||
|
$use_backquotes = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Outputs comment
|
* Outputs comment
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user