diff --git a/utf8mb4_convert.drush.inc b/utf8mb4_convert.drush.inc
index c4d43f8..a674c12 100644
--- a/utf8mb4_convert.drush.inc
+++ b/utf8mb4_convert.drush.inc
@@ -106,8 +106,8 @@ public function convertDatabase($database_name, $charset = NULL, $collation = NU
     drush_print('Converting database: ' . $database_name);
     $sql = "ALTER DATABASE `" . $database_name . "` CHARACTER SET = :charset COLLATE = :collation;";
     return $this->connection->query($sql, array(
-      ':charset' => $charset ?: $this->charset,
-      ':collation' => $collation ?: $this->collation,
+      ':charset' => $charset ? $charset : $this->charset,
+      ':collation' => $collation ? $collation : $this->collation,
     ));
   }
 
