Correct isset() and associated checks in Revision::__construct()
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 28 Dec 2012 12:03:06 +0000 (13:03 +0100)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 28 Dec 2012 12:03:06 +0000 (13:03 +0100)
commit4b6a0ff9884747c49cae65b6cf9f328704d47c0f
tree57ee760d03b53717060af5be0d8d3526682826e5
parenta97f3550a09c5ee64ebade752c5dfa56a7350d84
Correct isset() and associated checks in Revision::__construct()

isset() checks that the member is set *and* its value is not null,
so there's no point doing a second is_null() check.
This also fixes an E_NOTICE when rev_parent_id is not set since
is_null() was called on it after isset() returned false.

Change-Id: I07bf670236413436d23ee5d87d032608b25769ce
includes/Revision.php