Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SQL typo (website_code/php/display_library.php - > logon_id -> login_id)
  • Loading branch information
DavidGoodwin committed May 9, 2014
1 parent 81d982c commit 9b025d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website_code/php/display_library.php
Expand Up @@ -304,7 +304,7 @@ function list_users_projects($sort_type) {

$prefix = $xerte_toolkits_site->database_table_prefix;

$query = "select folder_id from {$prefix}folderdetails where folder_name=? AND logon_id = ?";
$query = "select folder_id from {$prefix}folderdetails where folder_name=? AND login_id = ?";
$params = array("recyclebin", $_SESSION['toolkits_logon_id']);

$row = db_query_one($query, $params);
Expand Down Expand Up @@ -363,9 +363,9 @@ function list_blank_templates() {
$prefix = $xerte_toolkits_site->database_table_prefix;

$query_for_blank_templates = "select * from {$prefix}originaltemplatesdetails where "
. "access_rights=? and active=true order by date_uploaded DESC";
. "access_rights=? and active= ? order by date_uploaded DESC";

$rows = db_query($query_for_blank_templates, array('*'));
$rows = db_query($query_for_blank_templates, array('*', 1));


foreach($rows as $row) {
Expand Down

0 comments on commit 9b025d8

Please sign in to comment.