__destruct should be public.
authorStéphane Jacob <sj@m4x.org>
Sun, 10 Jun 2012 16:07:30 +0000 (18:07 +0200)
committerStéphane Jacob <sj@m4x.org>
Sun, 10 Jun 2012 16:07:30 +0000 (18:07 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
classes/profile.php

index a05ed66..593568c 100644 (file)
@@ -171,7 +171,7 @@ class Profile implements PlExportable
         $this->visibility = $visibility;
     }
 
-    private function __destruct()
+    public function __destruct()
     {
         // Need to delete objects allocated by the profile
         // http://www.php.net/manual/en/function.unset.php#98692