Browse Source

Unused Variables
- Avatar.php
- Calendar.php
- DbExtra-mysql.php
- DbPackages-mysql.php
Signed-off-by: Antes <[email protected]>

Antes 11 years ago
parent
commit
d8e1de7e6f
4 changed files with 4 additions and 4 deletions
  1. 1 1
      Sources/Avatar.php
  2. 1 1
      Sources/Calendar.php
  3. 1 1
      Sources/DbExtra-mysql.php
  4. 1 1
      Sources/DbPackages-mysql.php

+ 1 - 1
Sources/Avatar.php

@@ -19,7 +19,7 @@ if (!defined('SMF'))
 
 function showAvatar()
 {
-	global $smcFunc, $modSettings, $sourcedir, $maintenance;
+	global $smcFunc, $modSettings, $maintenance;
 
 	// We need a valid ID
 	if(empty($_GET['attach']) || (string)$_GET['attach'] != (string)(int)$_GET['attach'])

+ 1 - 1
Sources/Calendar.php

@@ -337,7 +337,7 @@ function CalendarPost()
  */
 function iCalDownload()
 {
-	global $smcFunc, $sourcedir, $forum_version, $context, $modSettings, $webmaster_email, $mbname;
+	global $smcFunc, $sourcedir, $forum_version, $modSettings, $webmaster_email, $mbname;
 
 	// You can't export if the calendar export feature is off.
 	if (empty($modSettings['cal_export']))

+ 1 - 1
Sources/DbExtra-mysql.php

@@ -174,7 +174,7 @@ function smf_db_backup_table($table, $backup_table)
  */
 function smf_db_optimize_table($table)
 {
-	global $smcFunc, $db_name, $db_prefix;
+	global $smcFunc, $db_prefix;
 
 	$table = str_replace('{db_prefix}', $db_prefix, $table);
 

+ 1 - 1
Sources/DbPackages-mysql.php

@@ -207,7 +207,7 @@ function smf_db_drop_table($table_name, $parameters = array(), $error = 'fatal')
  */
 function smf_db_add_column($table_name, $column_info, $parameters = array(), $if_exists = 'update', $error = 'fatal')
 {
-	global $smcFunc, $db_package_log, $txt, $db_prefix;
+	global $smcFunc, $db_package_log, $db_prefix;
 
 	$table_name = str_replace('{db_prefix}', $db_prefix, $table_name);