fixed ldap handler not recognizing database suffix
[matthijs/upstream/backupninja.git] / handlers / ldap.in
index 4d9a3354e117a50759ce961847965908a59685c4..f6f87c77a46ce83eba218aa0d87c09cb29555e75 100644 (file)
@@ -42,7 +42,7 @@ if [ "$ldif" == "yes" ]; then
    fi  
    
    for db in $databases; do
-      if [ `expr index "$dbnum" "="` == "0" ]; then
+      if [ `expr index "$db" "="` == "0" ]; then
                        # db is a number, get the suffix.
          dbsuffix=${dbsuffixes[$db]/*:/}
       else