Plugin Directory

Changeset 2195990


Ignore:
Timestamp:
11/18/2019 10:19:08 PM (6 years ago)
Author:
magent
Message:

Declared variable and used the vtm_count function for checking query output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vampire-character/trunk/inc/shortcodes.php

    r2180661 r2195990  
    3434    $result = $wpdb->get_results($wpdb->prepare($sql, $characterID));
    3535       
    36     if (count($result) == 0) {
     36    if (vtm_count($result) == 0) {
     37        $result[0] = new stdClass();
    3738        $result[0]->priv = '';
    3839        $result[0]->pub = '';
Note: See TracChangeset for help on using the changeset viewer.