Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: editpost.php 5568 2011-09-08 10:13:10Z Tomm $
| * $Id$
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 393 | Zeile 393 |
---|
if($forumpermissions['canpostattachments'] != 0) { // Get a listing of the current attachments, if there are any $attachcount = 0;
|
if($forumpermissions['canpostattachments'] != 0) { // Get a listing of the current attachments, if there are any $attachcount = 0;
|
| $posthash_query = '';
|
if($posthash) {
|
if($posthash) {
|
$posthash_query = "posthash='{$posthash}' OR "; } else { $posthash_query = "";
| $posthash_query = "posthash='".$db->escape_string($posthash)."' OR ";
|
}
|
}
|
|
|
$query = $db->simple_select("attachments", "*", "{$posthash_query}pid='{$pid}'"); $attachments = ''; while($attachment = $db->fetch_array($query))
| $query = $db->simple_select("attachments", "*", "{$posthash_query}pid='{$pid}'"); $attachments = ''; while($attachment = $db->fetch_array($query))
|