Changeset 3300 for sandbox/lib/model/blog.entry.php
- Timestamp:
- 05/21/07 02:25:54 (20 months ago)
- Files:
-
- 1 modified
-
sandbox/lib/model/blog.entry.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sandbox/lib/model/blog.entry.php
r3299 r3300 218 218 requireComponent('Eolin.PHP.Core'); 219 219 220 // 팀블로그220 // Teamblog 221 221 $chT_SQL1 = $chT_SQL2 = ""; 222 $posting = DBQuery::queryCell("SELECT Posting FROM {$database['prefix']}Teamblog WHERE teams='$owner' and userid=' $_SESSION[admin]'" );222 $posting = DBQuery::queryCell("SELECT Posting FROM {$database['prefix']}Teamblog WHERE teams='$owner' and userid='".$_SESSION['admin']."'" ); 223 223 if(empty($posting)){ 224 224 $chT_SQL1 = ", {$database['prefix']}TeamEntryRelations z"; 225 $chT_SQL2 = " AND z.Owner= $ownerAND z.Id=e.id AND z.Team=".$_SESSION['admin'];225 $chT_SQL2 = " AND z.Owner=".$owner." AND z.Id=e.id AND z.Team=".$_SESSION['admin']; 226 226 } 227 227 // End TeamBlog … … 454 454 DBQuery::query("DELETE FROM {$database['prefix']}Entries WHERE owner = $owner AND id = $id AND draft = 1"); 455 455 DBQuery::query("UPDATE {$database['prefix']}Attachments SET parent = $id WHERE owner = $owner AND parent = 0"); 456 DBQuery::query("INSERT INTO `{$database['prefix']}TeamEntryRelations` VALUES('$owner', '$id', '".$_SESSION['admin']."')"); 456 457 updateEntriesOfCategory($owner, $entry['category']); 457 458 if ($entry['visibility'] == 3)
