Plugin Directory

Changeset 2293950


Ignore:
Timestamp:
04/28/2020 10:28:23 PM (6 years ago)
Author:
alxuta
Message:

CronJob Fix

  • set the active status only for the pending users
Location:
virtual-queue/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • virtual-queue/trunk/public/class-virtual-queue-public.php

    r2292976 r2293950  
    340340         */
    341341        $allow_counter = $vq_sessions_limit_number - self::activeCounter();
    342         $wpdb->query("update $table set status=1 ORDER BY id ASC LIMIT $allow_counter");
     342        $wpdb->query("update $table set status=1 where status=0 ORDER BY id ASC LIMIT $allow_counter");
    343343
    344344        /**
  • virtual-queue/trunk/virtual-queue.php

    r2293063 r2293950  
    2020 * Author:            Alex Uta
    2121 * Author URI:        https://warpknot.com/
    22  * Donate link:       https://www.paypal.me/wknt
    2322 * License:           GPL-2.0+
    2423 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
Note: See TracChangeset for help on using the changeset viewer.