Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
9d564004
Commit
9d564004
authored
Jan 25, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
71475eb9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Htmlcolor.php
lib/Doctrine/Validator/Htmlcolor.php
+1
-1
Notblank.php
lib/Doctrine/Validator/Notblank.php
+1
-1
No files found.
lib/Doctrine/Validator/Htmlcolor.php
View file @
9d564004
...
...
@@ -41,7 +41,7 @@ class Doctrine_Validator_HtmlColor
*/
public
function
validate
(
Doctrine_Record
$record
,
$key
,
$value
,
$args
)
{
if
(
!
preg_match
(
"/^#
{
0,1}[0-9]{6
}
$/"
,
$color
))
{
if
(
!
preg_match
(
"/^#
{
0,1}[0-9]{6
}
$/"
,
$value
))
{
return
false
;
}
return
true
;
...
...
lib/Doctrine/Validator/Notblank.php
View file @
9d564004
...
...
@@ -41,6 +41,6 @@ class Doctrine_Validator_Notblank
*/
public
function
validate
(
Doctrine_Record
$record
,
$key
,
$value
,
$args
)
{
return
(
trim
(
$value
)
!=
""
);
return
(
trim
(
$value
)
!=
''
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment