PHP snippet Code Security
<p>I am writing this in PHP</p>

<pre><code>$edit_window = $database_info-&gt;timestamp + 86400;
$current_timestamp = time ();

if ($current_timestamp &gt; $edit_window){
        $database_info-&gt;editable = TRUE;
     } 
else {
        $database_info-&gt;editable = FALSE;
     }
</code></pre>

<p>then</p>

<pre><code>if ($database_info-&gt;editable){
//do some major stuff
}
</code></pre>

<p>Somehow this code is worrying me. Is it open to vulnerablities? Is there a better approach?</p>
