Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Commit

Permalink
fix for create_domain() to make adding records at the same time optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Lashbrook committed Sep 9, 2011
1 parent 4b8ccec commit f0b3430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rackDNS.php
Expand Up @@ -410,8 +410,8 @@ public function domain_import($records, $comment = null) {
* @param unknown_type $records
* @return boolean|Ambigous <multitype:, NULL, mixed>
*/
public function create_domain($name = false, $email = false, $records = false, $showDetails = false) {
if (! $email || ! $name || ! is_array ( $records )) {
public function create_domain($name = false, $email = false, $records = array(), $showDetails = false) {
if (! $email || ! $name ) {
return false;
}

Expand Down

0 comments on commit f0b3430

Please sign in to comment.