diff --git a/bin/php/ezsqldiff.php b/bin/php/ezsqldiff.php
index <HASH>..<HASH> 100755
--- a/bin/php/ezsqldiff.php
+++ b/bin/php/ezsqldiff.php
@@ -101,7 +101,7 @@ $matchType = $options['match-type'] ? $options['match-type'] : $options['type'];
 $matchDBHost = $options['match-host'] ? $options['match-host'] : $options['host'];
 $matchDBUser = $options['match-user'] ? $options['match-user'] : $options['user'];
 $matchDBPassword = $options['match-password'] ? $options['match-password'] : $options['password'];
-$matchDB = count( $options['arguments'] ) > 2 ? $options['arguments'][1] : '';
+$matchDB = count( $options['arguments'] ) == 2 ? $options['arguments'][1] : '';
 
 if ( !is_string( $matchDBPassword ) )
     $matchDBPassword = '';
- Fixed wrong arguments parsing in ezsqldiff: empty match db name was sometimes used.


git-svn-id: file:///home/patrick.allaert/svn-git/ezp-repo/ezpublish/trunk@<I> a<I>eee8c-daba-<I>-acae-fa<I>f<I>