From 3a778e624f25a4954eed6af3982d553e12d0908c Mon Sep 17 00:00:00 2001 From: jwage Date: Fri, 26 Feb 2010 01:26:42 +0000 Subject: [PATCH] [2.0] Fixing strict standards notice --- lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php b/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php index a2df8a1c7..f383cf458 100644 --- a/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php +++ b/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php @@ -251,10 +251,10 @@ class MySqlSchemaManager extends AbstractSchemaManager { $tableForeignKey = array_change_key_case($tableForeignKey, CASE_LOWER); - if ($tableForeignKey['delete_rule'] == "RESTRICT") { + if (!isset($tableForeignKey['delete_rule']) || $tableForeignKey['delete_rule'] == "RESTRICT") { $tableForeignKey['delete_rule'] = null; } - if ($tableForeignKey['update_rule'] == "RESTRICT") { + if (!isset($tableForeignKey['update_rule']) || $tableForeignKey['update_rule'] == "RESTRICT") { $tableForeignKey['update_rule'] = null; }