Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2018
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // Sanity check for replace is key part of the columns array
  2. if ($method == 'replace' && count(array_intersect_key($columns, array_flip($keys))) !== count($keys))
  3. smf_db_error_backtrace('Primary Key field missing in insert call',
  4. 'Change the method of db insert to insert or add the pk field to the columns array', E_USER_ERROR, __FILE__, __LINE__);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement