Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 * [5998/old_svn] 오류 수정
  • Loading branch information
inureyes committed May 23, 2008
1 parent 4f105bb commit 9c4d5de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion components/Textcube.Data.Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function remove($id = null) { // attachment & category is own your risk!
// step 7. Delete Attachment
$attachNames = POD::queryColumn("SELECT name FROM {$database['prefix']}Attachments
WHERE blogid = ".getBlogId()." AND parent = ".$this->id);
if (POD::execute("DELETE FROM {$database['prefix']}Attachments WHERE blogid = ".getBlogId()." AND parent = "$this->id)) {
if (POD::execute("DELETE FROM {$database['prefix']}Attachments WHERE blogid = ".getBlogId()." AND parent = ".$this->id)) {
foreach($attachNames as $attachName) {
if( file_exists( ROOT . "/attach/".getBlogId()."/$attachName") ) {
@unlink(ROOT . "/attach/".getBlogId()."/$attachName");
Expand Down
1 change: 0 additions & 1 deletion lib/includeForBlogOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
$codeName = 'includeForBlogOwner.php';
require ROOT.'/lib/include.php';
header('Content-Type: text/html; charset=utf-8');

requireOwnership(); // Check access control list
require ROOT .'/lib/pageACL.php';
?>

0 comments on commit 9c4d5de

Please sign in to comment.