diff --git a/libraries/plugins/schema/eps/RelationStatsEps.class.php b/libraries/plugins/schema/eps/RelationStatsEps.class.php
index 4524a1d70b..c0feff0b97 100644
--- a/libraries/plugins/schema/eps/RelationStatsEps.class.php
+++ b/libraries/plugins/schema/eps/RelationStatsEps.class.php
@@ -61,6 +61,7 @@ class Relation_Stats_Eps extends RealtionStats
{
global $eps;
+ /* Commented because $color unused.
if ($showColor) {
$listOfColors = array(
'red',
@@ -75,7 +76,7 @@ class Relation_Stats_Eps extends RealtionStats
$color = $listOfColors[0];
} else {
$color = 'black';
- }
+ }*/
// draw a line like -- to foreign field
$eps->line(
$this->xSrc,
diff --git a/libraries/pmd_common.php b/libraries/pmd_common.php
index ad4c6e6e77..19f492c056 100644
--- a/libraries/pmd_common.php
+++ b/libraries/pmd_common.php
@@ -602,8 +602,6 @@ function PMA_removeRelation($T1, $F1, $T2, $F2)
$tables = $GLOBALS['dbi']->getTablesFull($DB2, $T2);
$type_T2 = /*overload*/mb_strtoupper($tables[$T2]['ENGINE']);
- $try_to_delete_internal_relation = false;
-
if (PMA_Util::isForeignKeySupported($type_T1)
&& PMA_Util::isForeignKeySupported($type_T2)
&& $type_T1 == $type_T2
@@ -618,24 +616,15 @@ function PMA_removeRelation($T1, $F1, $T2, $F2)
. PMA_Util::backquote($foreigner['constraint']) . ';';
if ($GLOBALS['dbi']->query($upd_query)) {
return array(true, __('FOREIGN KEY relation has been removed.'));
- } else {
- $error = $GLOBALS['dbi']->getError();
- return array(
- false,
- __('Error: FOREIGN KEY relation could not be removed!')
- . "
" . $error
- );
}
- } else {
- // there can be an internal relation even if InnoDB
- $try_to_delete_internal_relation = true;
- }
- } else {
- $try_to_delete_internal_relation = true;
- }
- if (!$try_to_delete_internal_relation) {
- return;
+ $error = $GLOBALS['dbi']->getError();
+ return array(
+ false,
+ __('Error: FOREIGN KEY relation could not be removed!')
+ . "
" . $error
+ );
+ }
}
// internal relations
diff --git a/libraries/rte/rte_footer.lib.php b/libraries/rte/rte_footer.lib.php
index 036e7fea53..d21689e715 100644
--- a/libraries/rte/rte_footer.lib.php
+++ b/libraries/rte/rte_footer.lib.php
@@ -22,7 +22,7 @@ function PMA_RTE_getFooterLinks($docu, $priv, $name)
{
global $db, $table, $url_query, $ajax_class;
- $icon = 'b_' . /*overload*/mb_strtolower($name) . '_add.png';
+ $icon = /*overload*/mb_strtolower($name) . '_add.png';
$retval = "";
$retval .= "\n";
$retval .= "