"SELECT TRUE FROM {masquerade_users} WHERE uid_from = ':uid'", array(':uid' => $user->uid)

Placeholders should not be quoted.

Also, for the feeble-minded; you can use unnamed placeholders (?).

Comments

deekayen’s picture

Status: Active » Fixed

Fixed in HEAD. Thanks for the review.

Any idea if this is in Coder?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 41476eb on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by deekayen:
    #793374 by Heine - unquote query placeholders
    
    

  • Commit 41476eb on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by deekayen:
    #793374 by Heine - unquote query placeholders