Skip to content

Commit a285e3d

Browse files
committed
Fix sfDoctrineTester, string cannot be accessed as array
1 parent a4929ca commit a285e3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/plugins/sfDoctrinePlugin/lib/test/sfTesterDoctrine.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function check($model, $query, $value = true)
6565
}
6666

6767
$operator = '=';
68-
if ('!' == $condition[0])
68+
if (strlen($condition) && '!' == substr($condition,0,1))
6969
{
7070
$operator = false !== strpos($condition, '%') ? 'NOT LIKE' : '!=';
7171
$condition = substr($condition, 1);
@@ -103,7 +103,7 @@ public function check($model, $query, $value = true)
103103

104104
/**
105105
* Outputs some debug information about queries run during the current request.
106-
*
106+
*
107107
* @param integer|string $limit Either an integer to return the last many queries, a regular expression or a substring to search for
108108
*/
109109
public function debug($limit = null)

0 commit comments

Comments
 (0)