aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 7ff3eda67..94050d13b 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -306,7 +306,7 @@ function replace_search( $string, $search )
function database_connection()
{
include( PREFIX_INCLUDE.'./include/mysql.inc.php' );
- define( PREFIX_TABLE, $prefixeTable );
+ define( 'PREFIX_TABLE', $prefixeTable );
@mysql_connect( $cfgHote, $cfgUser, $cfgPassword )
or die ( "Could not connect to server" );
@@ -334,6 +334,7 @@ function templatize_array( $array, $global_array_name, $handle )
global $vtp, $lang, $page, $user, $conf;
foreach ( $array as $value ) {
+ if (isset(${$global_array_name}[$value]))
$vtp->setGlobalVar( $handle, $value, ${$global_array_name}[$value] );
}
}