[Customisation Database Commits] r576 - /trunk/titania/includes/tools/attachment.php

Nathan Guse exreaction at phpbb.com
Thu Feb 4 03:54:22 GMT 2010


Author: exreaction
Date: Thu Feb  4 03:54:22 2010
New Revision: 576

Log:
Fix the bug where previously attached (but not submitted) attachments would show up when trying to post a new message

Modified:
    trunk/titania/includes/tools/attachment.php

Modified: trunk/titania/includes/tools/attachment.php
==============================================================================
*** trunk/titania/includes/tools/attachment.php (original)
--- trunk/titania/includes/tools/attachment.php Thu Feb  4 03:54:22 2010
***************
*** 145,151 ****
  	*/
  	public function load_attachments($attachment_ids = false)
  	{
! 		if (!sizeof($attachment_ids) && $attachment_ids !== false)
  		{
  			return;
  		}
--- 145,152 ----
  	*/
  	public function load_attachments($attachment_ids = false)
  	{
! 		// Do not load if we do not have an object_id or an empty array of attachment_ids
! 		if (!$this->object_id || (!sizeof($attachment_ids) && $attachment_ids !== false))
  		{
  			return;
  		}




More information about the customisationdb-commits mailing list