Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating query so it works (I think)

  • Loading branch information...
commit c538930e5858c7f7bba9bc1b69d5384dca6218f3 1 parent b8fea5e
@gabebw authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 fk-lib-cast.php
View
4 fk-lib-cast.php
@@ -89,8 +89,8 @@ function fk_cast_delete($cast_id, $delete_characters = false){
// TODO: does this work?
// Delete all characters from episodes where they were played by this actor (other actors may have played them in other episodes).
$wpdb->query($wpdb->prepare("DELETE app FROM $fk_settings->appearance_table AS app
- INNER JOIN app $fk_settings->cast2character_table AS cc
- WHERE app.cast_id = %d AND app.character_id = cc.character_id", $cast_id));
+ INNER JOIN $fk_settings->cast2character_table AS cc
+ ON app.cast_id = %d AND app.character_id = cc.character_id", $cast_id));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.