Plugin Directory

Changeset 1581798


Ignore:
Timestamp:
01/25/2017 10:48:52 AM (9 years ago)
Author:
stianpr
Message:

Fix syntax error in PHP 5.4

Location:
mailmojo-widget/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • mailmojo-widget/trunk/mailmojo-plugin.php

    r1581322 r1581798  
    4747     */
    4848    public static function getInstance () {
    49         if (empty(self::$instance)) {
     49        $obj = self::$instance;
     50
     51        if (empty($obj)) {
    5052            self::$instance = new MailMojoPlugin();
    5153        }
     
    7375     */
    7476    public function isActive () {
    75         return !empty($this->settings->getAccessToken());
     77        $token = $this->settings->getAccessToken();
     78        return !empty($token);
    7679    }
    7780
  • mailmojo-widget/trunk/mailmojo-settings.php

    r1581322 r1581798  
    4646     */
    4747    public static function getInstance () {
    48         if (empty(self::$instance)) {
     48        $obj = self::$instance;
     49
     50        if (empty($obj)) {
    4951            self::$instance = new MailMojoSettings();
    5052        }
  • mailmojo-widget/trunk/mailmojo.php

    r1581325 r1581798  
    66Author: Eliksir AS
    77Author URI: http://e5r.no
    8 Version: 1.0.0
     8Version: 1.0.1
    99*/
    1010
  • mailmojo-widget/trunk/readme.txt

    r1581325 r1581798  
    44Requires at least: 4.0
    55Tested up to: 4.7.1
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4040== Changelog ==
    4141
    42 = 1.0 =
     42= 1.0.1 =
     43* Fix syntax errors in PHP 5.4.
     44
     45= 1.0.0 =
    4346* Important: Requires PHP 5.4 or newer.
    4447* Use MailMojo API to support retrieval of email lists.
Note: See TracChangeset for help on using the changeset viewer.