PHP Classes

Question about your Example file

Recommend this page to a friend!

      PHP Social Network Sync  >  All threads  >  Question about your Example file  >  (Un) Subscribe thread alerts  
Subject:Question about your Example file
Summary:Shouldn't the condition be an OR instead of AND ?
Messages:1
Author:Lee McAuley
Date:2022-11-19 21:39:05
 

  1. Question about your Example file   Reply   Report abuse  
Picture of Lee McAuley Lee McAuley - 2022-11-19 21:39:05
Hi, in the file under the Example dir, shouldn't this line " if(!$isSender && !$isFrom) " be an OR instead of an AND? Like " if(!$isSender || !$isFrom) "? What if ONE of the POSTED values is valid (and equivalent) and the other one is NOT valid or not equivalent? In that case, your code seems to just exit without a message and without doing anything, as far as I can see. Thanks.