Plugin Directory

Changeset 2662202


Ignore:
Timestamp:
01/23/2022 10:30:36 AM (4 years ago)
Author:
logistia
Message:

update readme

Location:
logistia/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • logistia/trunk/README.txt

    r2391188 r2662202  
    33Tags: delivery, route, stock sync, logistics management, optimal route, stock alerts, product management, employee management
    44Requires at least: 3.0.1
    5 Tested up to: 5.3
    6 Stable tag: 1.1.0
     5Tested up to: 5.8.2
     6Stable tag: 1.1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • logistia/trunk/includes/class-logistia-activator.php

    r2391237 r2662202  
    3636        try {
    3737            $currentIntegration = Logistia_Activator::create_keys("Logistia", get_current_user_id(), "read_write");
    38             Logistia_Activator::signInUser($currentIntegration['consumer_key'], $currentIntegration['consumer_secret']);
     38            if ($currentIntegration['consumer_key'] != null && $currentIntegration['consumer_secret'] != null) {
     39                Logistia_Activator::signInUser($currentIntegration['consumer_key'], $currentIntegration['consumer_secret']);
     40            } else {
     41                echo 'Could not generate keys';
     42            }
    3943        } catch (Exception $e) {
    4044            echo 'Logistia caught exception: ',  $e->getMessage(), "\n";
Note: See TracChangeset for help on using the changeset viewer.