Skip to content

Commit

Permalink
Fixed class_exists() w/ autoloader issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
cubiclesoft committed Apr 23, 2016
1 parent 14fe2fe commit 9e8f041
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion support/mime_parser.php
Expand Up @@ -3,7 +3,7 @@
// (C) 2014 CubicleSoft. All Rights Reserved.

// Load dependencies.
if (!class_exists("UTF8")) require_once str_replace("\\", "/", dirname(__FILE__)) . "/utf8.php";
if (!class_exists("UTF8", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/utf8.php";

class MIMEParser
{
Expand Down
8 changes: 4 additions & 4 deletions support/smtp.php
Expand Up @@ -3,8 +3,8 @@
// (C) 2014 CubicleSoft. All Rights Reserved.

// Load dependencies.
if (!class_exists("UTF8")) require_once str_replace("\\", "/", dirname(__FILE__)) . "/utf8.php";
if (!class_exists("IPAddr")) require_once str_replace("\\", "/", dirname(__FILE__)) . "/ipaddr.php";
if (!class_exists("UTF8", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/utf8.php";
if (!class_exists("IPAddr", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/ipaddr.php";

class SMTP
{
Expand Down Expand Up @@ -426,7 +426,7 @@ public static function UpdateDNSTTLCache()
public static function GetDNSRecord($domain, $types = array("MX", "A"), $nameservers = array("8.8.8.8", "8.8.4.4"), $cache = true)
{
// Check for a mail server based on a DNS lookup.
if (!class_exists("Net_DNS2_Resolver")) require_once str_replace("\\", "/", dirname(__FILE__)) . "/Net/DNS2.php";
if (!class_exists("Net_DNS2_Resolver", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/Net/DNS2.php";

$resolver = new Net_DNS2_Resolver(array("nameservers" => $nameservers));
try
Expand Down Expand Up @@ -1326,7 +1326,7 @@ public static function ConvertHTMLToText($data)
self::$depths = array();

// Load TagFilter.
if (!class_exists("TagFilter")) require_once str_replace("\\", "/", dirname(__FILE__)) . "/tag_filter.php";
if (!class_exists("TagFilter", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/tag_filter.php";

$data = UTF8::MakeValid($data);

Expand Down

0 comments on commit 9e8f041

Please sign in to comment.