Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
5086a93d
Commit
5086a93d
authored
14 years ago
by
SNA
Browse files
Options
Downloads
Patches
Plain Diff
Fix : fix comments
parent
29103080
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/trunk/core/class/BaseObject.php
+12
-3
12 additions, 3 deletions
core/trunk/core/class/BaseObject.php
with
12 additions
and
3 deletions
core/trunk/core/class/BaseObject.php
+
12
−
3
View file @
5086a93d
...
...
@@ -24,7 +24,8 @@
* that come directly from the
* table of a database.
*
* @author boulio
* @author Claire Figueras <dev@maarch.org>
* @author Boulio Nicolas
*
*/
class
BaseObject
{
...
...
@@ -41,9 +42,17 @@ class BaseObject {
*
* @param string $name Name of property to set
* @param object $value Value of property $name
* @return boolean True if the set is ok, false otherwise
*/
public
function
__set
(
$name
,
$value
){
$this
->
data
[
$name
]
=
$value
;
public
function
__set
(
$name
,
$value
)
{
if
(
isset
(
$name
))
{
$this
->
data
[
$name
]
=
$value
;
return
true
;
}
return
false
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment