[Customisation Database Commits] r660 - /trunk/titania/includes/objects/post.php

Nathan Guse exreaction at phpbb.com
Tue Mar 2 22:57:07 GMT 2010


Author: exreaction
Date: Tue Mar  2 22:57:07 2010
New Revision: 660

Log: (empty)

Modified:
    trunk/titania/includes/objects/post.php

Modified: trunk/titania/includes/objects/post.php
==============================================================================
*** trunk/titania/includes/objects/post.php (original)
--- trunk/titania/includes/objects/post.php Tue Mar  2 22:57:07 2010
***************
*** 591,596 ****
--- 591,602 ----
  			throw new exception('Modifying a post requires you load it through the load() function (we require the original information).');
  		}
  
+ 		// shouldn't need to load through load() to delete it...
+ 		if ($hard_delete && empty($this->sql_data))
+ 		{
+ 			$this->sql_data = $this->__get_array();
+ 		}
+ 
  		// Get the current count
  		$to_db = titania_count::from_db($this->topic->topic_posts, false);
  




More information about the customisationdb-commits mailing list