Plugin Directory

Changeset 1539172


Ignore:
Timestamp:
11/23/2016 02:53:11 PM (9 years ago)
Author:
plista
Message:

Fix json_encode() when data is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plista/trunk/plista_integration.php

    r1337137 r1539172  
    328328
    329329        if (!self::plista_ismobile()) {
    330             $plistapush = ',item:'.json_encode($plista_data);
     330            $plistapush = ',item:' . ($plista_data ? json_encode($plista_data) : '{}');
    331331        }
    332332
Note: See TracChangeset for help on using the changeset viewer.