summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-06-10 14:17:46 -0400
committerRobin Millette <millette@controlyourself.ca>2009-06-10 14:17:46 -0400
commite120cb1a5300f2e38820aa05ec9ac21073a934e0 (patch)
tree77944971d434cf62a7ce6e18a221037252bf56b1 /classes
parent207750e75774c823328889cb4102aad6a0b12281 (diff)
Uploaded content now displays in overlay (and removed var_dump crap)
Diffstat (limited to 'classes')
-rw-r--r--classes/Notice.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 0b1017e12..530c6daa7 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -279,13 +279,11 @@ class Notice extends Memcached_DataObject
function getUploadedAttachment() {
$post = clone $this;
- $query = 'select file.url as uploaded from file join file_to_post on file.id = file_id where post_id=' . $post->escape($post->id) . ' and url like "%/notice/%/file"';
+ $query = 'select file.url as up, file.id as i from file join file_to_post on file.id = file_id where post_id=' . $post->escape($post->id) . ' and url like "%/notice/%/file"';
$post->query($query);
$post->fetch();
- $ret = $post->uploaded;
-// var_dump($post);
+ $ret = array($post->up, $post->i);
$post->free();
-// die();
return $ret;
}