Przeglądaj źródła

Wrapped send call around PRODUCTION conditional.

Alan Lam 8 lat temu
rodzic
commit
0835781784
1 zmienionych plików z 7 dodań i 1 usunięć
  1. 7 1
      engine/email.php

+ 7 - 1
engine/email.php

@@ -109,7 +109,13 @@ class Email {
 
 		$instance->Body = $this->htmlContent;
 
-		return $this->instance->send();
+		if(PRODUCTION) {
+			return $this->instance->send();
+		}
+		else {
+			return true;
+		}
+
 
 	}