PlayerUtil.class.php some fix

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • PlayerUtil.class.php some fix

    No problem, but changed the table's field names to be the same.


    1. edit file open
    includes/classes/PlayerUtil.class.php

    near line 468


    fleet_id = fleetId ----> fleet_id = fleetID

    PHP Source Code

    1. $sql = 'DELETE %%FLEETS%%, %%FLEETS_EVENT%%
    2. FROM %%FLEETS%% LEFT JOIN %%FLEETS_EVENT%% on fleet_id = fleetId
    3. WHERE fleet_owner = :userId;';
    4. $db->delete($sql, array(
    5. ':userId' => $userId
    6. ));
    7. //Modify like below
    8. $sql = 'DELETE %%FLEETS%%, %%FLEETS_EVENT%%
    9. FROM %%FLEETS%% LEFT JOIN %%FLEETS_EVENT%% on fleet_id = fleetID
    10. WHERE fleet_owner = :userId;';
    11. $db->delete($sql, array(
    12. ':userId' => $userId
    13. ));
    Display All
    --------------------------------------------------------------------------------------