Skip to content

Commit

Permalink
fix recycle query - only want one row back to check, not a list of rows
Browse files Browse the repository at this point in the history
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@126 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Dave Goodwin committed Oct 5, 2011
1 parent bfb2d43 commit 7f9dd8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion play.php
Expand Up @@ -209,7 +209,7 @@ function check_security_type($security_setting){
/*
* Is the file in the recycle bin?
*/
$row_recycle = db_query("SELECT folder_name FROM {$xerte_toolkits_site->database_table_prefix}folderdetails WHERE folder_id = ?", array($row_play['folder']));
$row_recycle = db_query_one("SELECT folder_name FROM {$xerte_toolkits_site->database_table_prefix}folderdetails WHERE folder_id = ?", array($row_play['folder']));
if($row_recycle['folder_name']=="recyclebin"){
echo edit_xerte_page_format_top(file_get_contents($xerte_toolkits_site->website_code_path . "error_top")) . " Sorry this resource is no longer available </div></div></body></html>";
exit(0);
Expand Down

0 comments on commit 7f9dd8f

Please sign in to comment.